import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity('user') //表名
export class User { 
    @PrimaryGeneratedColumn('uuid')
    id:string   

    @Column({
        type:'varchar',
        length:255,
        unique:true, //唯一
        comment:'用户名' //备注
    })
    username:string

    @Column({
        type:'varchar',
        length:255,
        comment:'密码'
    })
    password:string
}
